package com.example.demo.entity;

import java.io.Serializable;

public class Result<T> implements Serializable
{
    int code;
    private T data = null;
    int total;

    public int getTotal() {
        return total;
    }

    public Result<T> setTotal(int total) {
        this.total = total;
        return this;
    }

    public T getData()
    {
        return data;
    }

    public void setData(T data)
    {
        this.data=data;
    }

    public Result(int code) {
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }


}
